package gupao.one.gongcangmodle.factoryMode.homeWork.impl;

import gupao.one.gongcangmodle.factoryMode.homeWork.IEwallet;
import lombok.extern.slf4j.Slf4j;

import java.text.DecimalFormat;

/**
 * 支付宝
 */
@Slf4j
public class Alipay implements IEwallet {


    @Override
    public boolean pay(Long forpay) {
        DecimalFormat format  = new DecimalFormat("0.00");
        String format1 = format.format(Math.random() * 10000);
        log.info("【支付宝】完成交易金额：{}，可用余额：{}",forpay,format1);

        return true;
    }
}
